﻿using System;
using System.Runtime.Serialization;

namespace JTLeigh.Commerce.Spencer.Core.Service.Contracts
{

    /// <summary>
    /// Data contract representing the requested pagination behavior.
    /// </summary>
    [DataContract(Name = "PaginationBehavior", Namespace = "http://schemas.jtleigh.com/Commerce/Spencer/Core/1.0/")]
    public class PaginationBehavior
    {

        /// <summary>
        /// Gets or sets the current page number.
        /// </summary>
        [DataMember(Name = "CurrentPage", IsRequired = true)]
        public int CurrentPage { get; set; }

        /// <summary>
        /// Gets or sets the maximum number of pages.
        /// </summary>
        [DataMember(Name = "MaximumPages", IsRequired = true)]
        public int MaximumPages { get; set; }

        /// <summary>
        /// Gets or sets the maximum number of items per page.
        /// </summary>
        [DataMember(Name = "MaximumItemsPerPage", IsRequired = true)]
        public int MaximumItemsPerPage { get; set; }

    }

}
